package classLoaderTest;

/**
 * @program: javase
 * @description: 自定义类加载器，不使用双亲委派机制
 * @author: lld
 * @create: 2021-03-16 23:31
 **/
public class MyClassLoader   {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class<?> aClass = Class.forName("Test1.java");
        Test1 o = (Test1) aClass.newInstance();
        System.out.println(Test1.a);

        Class<?> aClass1 = ClassLoader.getSystemClassLoader().loadClass("Test1.java");
//        aClass1.
    }
}
